package com.kmzx.one.project.mapper;

import com.kmzx.one.project.entity.PartnerAuth;
import com.kmzx.one.project.others.dso.PartnerAuthDso;
import com.kmzx.one.project.others.dso.PartnerOutDso;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * @Project one
 * @Author: carol
 * @Date: 2020/5/29-9:57
 */
@Component
@Mapper
public interface PartnerMapper {

    PartnerOutDso selectOnePartnerInfo();

    List<PartnerAuthDso> selectPartnerAuthInfo(String userId);

    /**
     * @param id
     * @param updateTime
     */
    void updateViewedAuthHistory(@Param("id") String id, @Param("updateTime") Date updateTime);

    void insertPartnerAuth(PartnerAuth auth);


}
